<?php
// 本类由系统自动生成，仅供测试用途
class IndexAction extends CommonAction {
    public function index(){
    	//exit(dump($this->pro));
	    //dump(M('protype')->select());
	    //dump(M('protype')->where("type_id=1")->select());
		/*$this->assign("big_type_1",M('protype')->where("type_id=1")->select())->display();
		$this->assign("big_type_2",M('protype')->where("type_id=2")->select())->display();
		$this->assign("big_type_3",M('protype')->where("type_id=3")->select())->display();
		$this->assign("big_type_4",M('protype')->where("type_id=4")->select())->display();
		$this->assign("big_type_5",M('protype')->where("type_id=5")->select())->display();
	    */
	    $protype= array();
	    foreach($this->pro as $key => $val)
	    {
	    	$protype[]=M('product')->where("type_id=".$val["type_id"]." and pro_valid=1")->order('pro_id DESC')->limit('0,6')->select();
	    }
	    $this->assign("pro_type",$protype)->display();echo bl_debug(true);
    }

}
?>